import express from 'express';
import { 
  getAllSchedules, 
  createSchedule, 
  updateSchedule, 
  deleteSchedule 
} from '../controllers/scheduleController.js';

const router = express.Router();

// 获取所有发布计划
router.get('/schedules', getAllSchedules);

// 创建新的发布计划
router.post('/schedules', createSchedule);

// 更新发布计划
router.put('/schedules/:id', updateSchedule);

// 删除发布计划
router.delete('/schedules/:id', deleteSchedule);

export default router; 